package com.example.acontainerd.configure;

import com.example.acontainerd.properties.AContainerdProperties;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author william
 * @since 2025/9/3
 */
@EnableConfigurationProperties(AContainerdProperties.class)
@SpringBootConfiguration
public class AContainerdConfiguration {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
